package com.gzc.just.play.last.war.robotclient;

/**
 * 机器人管理器配置类
 */
public class RobotManagerConfig {
    
    // 机器人配置
    private int maxConcurrentRobots = 50;
    private int initialRobotCount = 5;
    private long initialRobotId = 10000;
    
    // 服务器配置
    private String loginServerHost = "127.0.0.1";
    private int loginServerPort = 30001;
    private String gateServerHost = "127.0.0.1";
    private int gateServerPort = 40001;
    
    // AI配置
    private long aiUpdateInterval = 1000; // 1秒更新一次AI
    private long heartbeatInterval = 5000; // 5秒心跳间隔
    private long reconnectInterval = 10000; // 10秒重连间隔
    
    public RobotManagerConfig() {
    }
    
    // Getters and Setters
    public int getMaxConcurrentRobots() {
        return maxConcurrentRobots;
    }
    
    public void setMaxConcurrentRobots(int maxConcurrentRobots) {
        this.maxConcurrentRobots = maxConcurrentRobots;
    }
    
    public int getInitialRobotCount() {
        return initialRobotCount;
    }
    
    public void setInitialRobotCount(int initialRobotCount) {
        this.initialRobotCount = initialRobotCount;
    }
    
    public long getInitialRobotId() {
        return initialRobotId;
    }
    
    public void setInitialRobotId(long initialRobotId) {
        this.initialRobotId = initialRobotId;
    }
    
    public String getLoginServerHost() {
        return loginServerHost;
    }
    
    public void setLoginServerHost(String loginServerHost) {
        this.loginServerHost = loginServerHost;
    }
    
    public int getLoginServerPort() {
        return loginServerPort;
    }
    
    public void setLoginServerPort(int loginServerPort) {
        this.loginServerPort = loginServerPort;
    }
    
    public String getGateServerHost() {
        return gateServerHost;
    }
    
    public void setGateServerHost(String gateServerHost) {
        this.gateServerHost = gateServerHost;
    }
    
    public int getGateServerPort() {
        return gateServerPort;
    }
    
    public void setGateServerPort(int gateServerPort) {
        this.gateServerPort = gateServerPort;
    }
    
    public long getAiUpdateInterval() {
        return aiUpdateInterval;
    }
    
    public void setAiUpdateInterval(long aiUpdateInterval) {
        this.aiUpdateInterval = aiUpdateInterval;
    }
    
    public long getHeartbeatInterval() {
        return heartbeatInterval;
    }
    
    public void setHeartbeatInterval(long heartbeatInterval) {
        this.heartbeatInterval = heartbeatInterval;
    }
    
    public long getReconnectInterval() {
        return reconnectInterval;
    }
    
    public void setReconnectInterval(long reconnectInterval) {
        this.reconnectInterval = reconnectInterval;
    }
    
    @Override
    public String toString() {
        return "RobotManagerConfig{" +
                "maxConcurrentRobots=" + maxConcurrentRobots +
                ", initialRobotCount=" + initialRobotCount +
                ", initialRobotId=" + initialRobotId +
                ", loginServerHost='" + loginServerHost + '\'' +
                ", loginServerPort=" + loginServerPort +
                ", gateServerHost='" + gateServerHost + '\'' +
                ", gateServerPort=" + gateServerPort +
                ", aiUpdateInterval=" + aiUpdateInterval +
                ", heartbeatInterval=" + heartbeatInterval +
                ", reconnectInterval=" + reconnectInterval +
                '}';
    }
}